In case where a method- and property name overlap, using the method
is less unambiguous than I thought - mozjs52-based gjs will only see
the method, while mozjs38-based gjs will only see the property. We
are in luck though, and the real property name contains dashes that
allow us to refer to the property in a way that works for all gjs
versions.
https://bugzilla.gnome.org/show_bug.cgi?id=785090
this._hidden = false;
this.title.show();
- if (this._windowClone.actor.has_pointer())
+ if (this._windowClone.actor['has-pointer'])
this._animateVisible();
},
_idleToggleCloseButton: function() {
this._idleToggleCloseId = 0;
- if (!this._windowClone.actor.has_pointer() &&
- !this.closeButton.has_pointer())
+ if (!this._windowClone.actor['has-pointer'] &&
+ !this.closeButton['has-pointer'])
this._animateInvisible();
return GLib.SOURCE_REMOVE;